#include "MaterialsWidget.h"
#include "MaterialGroups.h"

CMaterialsWidget::CMaterialsWidget(void)
{
	setAllowedAreas(Qt::RightDockWidgetArea);
	//setFeatures(QDockWidget::NoDockWidgetFeatures);
	setFixedWidth(200);
	initWindow();
}


CMaterialsWidget::~CMaterialsWidget(void)
{
}

void CMaterialsWidget::initWindow()
{
	m_pMaterialsGroups = new CMaterialGroups(this);
	m_pMaterialsGroups->move(2, 20);
}

void CMaterialsWidget::resizeEvent( QResizeEvent* event)
{
	m_pMaterialsGroups->resize(width()-4, height()-22);
}

// void CMaterialsWidget::mousePressEvent( QMouseEvent * event)
// {
// 	printf("right down\n");
// }
